package com.mit.service.purchase.dao;

import java.util.List;

import com.mit.common.exception.NoRecordUpdateException;
import com.mit.common.purchase.dto.ColorStyleDTO;

public interface IColorStyleDAO {

	List<ColorStyleDTO> retrieveColorStyles(Integer material, String activeIndicator);
	ColorStyleDTO createColorStyle(ColorStyleDTO to);
	ColorStyleDTO updateColorStyle(ColorStyleDTO to) throws NoRecordUpdateException;
	ColorStyleDTO retrieveColorStyle(Integer colorId);
	/**
	 * Is the color exist?
	 * @param material -Mandatory
	 * @param code - optional
	 * @param name - Mandatory
	 * @param excludedId -optional
	 * @return
	 */
	boolean hasColorStyle(Integer material, String code, String name, Integer excludedId);
}
